/*sidebar.sass//*/
#app {
  // 侧边栏
  .sidebar-container {
    transition: width 0.28s;
    width: 200px;
    // min-width: 200px;
    height: 100%;
    position: fixed;
    font-size: 0px;
    top: 59px;
    bottom: 0;
    left: 0;
    z-index: 1001;
    overflow: hidden;
    //reset element-ui css
    .horizontal-collapse-transition {
      transition: 0s width ease-in-out, 0s padding-left ease-in-out, 0s padding-right ease-in-out;
    }
    .scrollbar-wrapper {
      height: calc(100% + 15px);
      .el-scrollbar__view {
        height: 100%;
      }
    }
    .is-horizontal {
      display: none;
    }
    a {
      display: inline-block;
      width: 100%;
      overflow: hidden;
    }
    .svg-icon {
      margin-right: 16px;
    }
    .el-menu {
      border: none;
      height: 100%;
      width: 100% !important;
    }
    .el-menu-item {
      background-color: $menuBg !important;
      i {
        margin-right: 10px;
        color: white;
      }

      &:hover {
        color: #64BCFD !important;
        // background-color: $menuHover !important;
        i {
          color: #64BCFD;
        }
      }
     &.is-active {
       // background-color: #3F6193 !important;
       i {
         color: #64BCFD;
       }
     }
    }
    .is-active {
      // background-color: $menuHover !important;
    }
  }

  .hideSidebar {
    .sidebar-container {
      width: 36px !important;
    }
    .main-container {
      margin-left: 36px;
    }
    .submenu-title-noDropdown {
      padding-left: 10px !important;
      position: relative;
      .el-tooltip {
        padding: 0 10px !important;
      }
    }
    .el-submenu {
      overflow: hidden;
      &>.el-submenu__title {
        padding-left: 10px !important;
        .el-submenu__icon-arrow {
          display: none;
        }
      }
    }
    .el-tooltip {
      padding-left: 10px !important;
    }
    .el-menu--collapse {
      .el-submenu {
        background-color: $subMenuBg !important;
        &>.el-submenu__title {
          &>span {
            height: 0;
            width: 0;
            overflow: hidden;
            visibility: hidden;
            display: inline-block;
          }
        }
      }
    }
    // 收缩时：二级导航加背景
    .el-submenu.is-active {
      .el-submenu__title {
        background-color: #3F6193 !important;
        i {
          color: #64BCFD !important;
        }
      }
    }
  }

  .sidebar-container .nest-menu .el-submenu>.el-submenu__title,
  .sidebar-container .el-submenu .el-menu-item {
    min-width: 200px !important;
    // background-color: $subMenuBg !important;
    &.is-active {
      color: #64BCFD !important;
      background-color: $menuHover !important;
    }
    &:hover {
      // background-color: #3966A8 !important;
    }
  }
  .el-menu--collapse .el-menu .el-submenu {
    min-width: 200px !important;
  }
  
  // 图标默认为白色
  .el-submenu__title i {
    &.iconfont {
      margin-right: 10px;
    }
    color: white;
  }

  .el-submenu>.el-submenu__title {
    &:hover {
      color: #64BCFD !important;
      background-color: $menuHover !important;
      i {
        color: #64BCFD !important;
      }
    }
  }

  .el-submenu__icon-arrow {
    transform: rotate(-90deg);
  }

  // 二级导航被选中时颜色
  .el-submenu.is-opened {
    .el-submenu__title {
      color: #64BCFD !important;
      // background-color: #3F6193 !important;
    }
    .el-submenu__title i {
      color: #64BCFD;
    }
    .el-submenu__icon-arrow {
      transform: rotate(0deg);
    }
  }

}

// 收缩时：三级导航加背景
.el-menu--vertical {
  .el-menu-item {
    &:hover {
      color: #64BCFD !important;
      background-color: $menuBg !important;
    }
  }
  .el-menu-item.is-active {
    color: #64BCFD !important;
    background-color: #3F6193 !important;
  }
}